package com.cn.longdistancebusstation.model;

import com.cn.longdistancebusstation.annotation.OrderStatus;
import com.cn.longdistancebusstation.enumxx.PassengerType;
import com.cn.longdistancebusstation.enumxx.TicketStatus;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.math.BigDecimal;

/**
 * Created by mal on 2018/1/24.
 */

public class TicketInfo {
    //乘客姓名
    @SerializedName("customName")
    @Expose private String passengerName;

    //乘客身份证号
    @SerializedName("customIDCardNo")
    @Expose private String passengerCardNo;

    //乘客类型标识
    @SerializedName("customType")
    @Expose private int passenger_type;

    private PassengerType passengerType;

    //票价
    @SerializedName("buyprice")
    @Expose private String ticketPrice;

    //保险价格
    @SerializedName("InsurancePrice")
    @Expose private String insurancePrice;

    //退票手续费
    @SerializedName("refundTicketFee")
    @Expose private String refundPrice;

    //车票状态标识
    @SerializedName("status")
    @Expose int ticket_status;
    TicketStatus ticketStatus;

    //座位号
    @SerializedName("seatNum")
    @Expose String seatNo;
    //

    Boolean isChoose;


    //以下为订单信息
    //订单号
    @SerializedName("bookNum")
    @Expose private String orderNo;

    //订单日期
    @SerializedName("bookDateTime")
    @Expose private String orderDate;

    //发车时间
    @SerializedName("bliidSendDatetime")
    @Expose private String sendTime;

    //车次
    @SerializedName("bliid")
    @Expose private String busNo;

    //是否流水车
    @SerializedName("bliidIsFlow")
    @Expose private int isFlow;

    //订单最晚支付时间
    @SerializedName("lastGetTicketDatetime")
    @Expose private String latestPayDate;

    //目的站名称
    @SerializedName("arrivalAddress")
    @Expose private String toStationName;


    private String isToGate;
    private String toGateFee;
    private String isFromGate;
    private String fromGateFee;

    //折扣
    private String discountRate;


    public TicketInfo() {
        isChoose = false;
    }

    public String getPassengerName() {
        return passengerName;
    }

    public void setPassengerName(String passengerName) {
        this.passengerName = passengerName;
    }

    public String getPassengerCardNo() {
        return passengerCardNo;
    }

    public void setPassengerCardNo(String passengerCardNo) {
        this.passengerCardNo = passengerCardNo;
    }

    public int getPassenger_type() {
        return passenger_type;
    }

    public void setPassenger_type(int passenger_type) {
        this.passenger_type = passenger_type;
        this.passengerType = PassengerType.getPassengerType(passenger_type);
    }

    public PassengerType getPassengerType() {
        return passengerType;
    }

    public void setPassengerType(PassengerType passengerType) {
        this.passengerType = passengerType;
    }

    public String getTicketPrice() {
        return ticketPrice;
    }

    public void setTicketPrice(String ticketPrice) {
        this.ticketPrice = ticketPrice;
    }

    public String getInsurancePrice() {
        return insurancePrice;
    }

    public void setInsurancePrice(String insurancePrice) {
        this.insurancePrice = insurancePrice;
    }

    public int getTicket_status() {
        return ticket_status;
    }

    public void setTicket_status(int ticket_status) {
        this.ticket_status = ticket_status;
    }

    public TicketStatus getTicketStatus() {
        return ticketStatus;
    }

    public void setTicketStatus(TicketStatus ticketStatus) {
        this.ticketStatus = ticketStatus;
    }

    public String getSeatNo() {
        return seatNo;
    }

    public void setSeatNo(String seatNo) {
        this.seatNo = seatNo;
    }

    public Boolean getChoose() {
        return isChoose;
    }

    public void setChoose(Boolean choose) {
        isChoose = choose;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getBusNo() {
        return busNo;
    }

    public void setBusNo(String busNo) {
        this.busNo = busNo;
    }

    public int getIsFlow() {
        return isFlow;
    }

    public void setIsFlow(int isFlow) {
        this.isFlow = isFlow;
    }

    public String getLatestPayDate() {
        return latestPayDate;
    }

    public void setLatestPayDate(String latestPayDate) {
        this.latestPayDate = latestPayDate;
    }

    public String getToStationName() {
        return toStationName;
    }

    public void setToStationName(String toStationName) {
        this.toStationName = toStationName;
    }

    public String getRefundPrice() {
        return refundPrice;
    }

    public void setRefundPrice(String refundPrice) {
        this.refundPrice = refundPrice;
    }


    public String getIsToGate() {
        return isToGate;
    }

    public void setIsToGate(String isToGate) {
        this.isToGate = isToGate;
    }

    public String getToGateFee() {
        return toGateFee;
    }

    public void setToGateFee(String toGateFee) {
        this.toGateFee = toGateFee;
    }

    public String getIsFromGate() {
        return isFromGate;
    }

    public void setIsFromGate(String isFromGate) {
        this.isFromGate = isFromGate;
    }

    public String getFromGateFee() {
        return fromGateFee;
    }

    public void setFromGateFee(String fromGateFee) {
        this.fromGateFee = fromGateFee;}

    public String getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(String discountRate) {
        this.discountRate = discountRate;

    }
}
